package com.wxf.pojo;

import java.util.ArrayList;
import java.util.List;

public class PatientregisterExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public PatientregisterExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andPatientIdIsNull() {
            addCriterion("patientId is null");
            return (Criteria) this;
        }

        public Criteria andPatientIdIsNotNull() {
            addCriterion("patientId is not null");
            return (Criteria) this;
        }

        public Criteria andPatientIdEqualTo(Integer value) {
            addCriterion("patientId =", value, "patientId");
            return (Criteria) this;
        }

        public Criteria andPatientIdNotEqualTo(Integer value) {
            addCriterion("patientId <>", value, "patientId");
            return (Criteria) this;
        }

        public Criteria andPatientIdGreaterThan(Integer value) {
            addCriterion("patientId >", value, "patientId");
            return (Criteria) this;
        }

        public Criteria andPatientIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("patientId >=", value, "patientId");
            return (Criteria) this;
        }

        public Criteria andPatientIdLessThan(Integer value) {
            addCriterion("patientId <", value, "patientId");
            return (Criteria) this;
        }

        public Criteria andPatientIdLessThanOrEqualTo(Integer value) {
            addCriterion("patientId <=", value, "patientId");
            return (Criteria) this;
        }

        public Criteria andPatientIdIn(List<Integer> values) {
            addCriterion("patientId in", values, "patientId");
            return (Criteria) this;
        }

        public Criteria andPatientIdNotIn(List<Integer> values) {
            addCriterion("patientId not in", values, "patientId");
            return (Criteria) this;
        }

        public Criteria andPatientIdBetween(Integer value1, Integer value2) {
            addCriterion("patientId between", value1, value2, "patientId");
            return (Criteria) this;
        }

        public Criteria andPatientIdNotBetween(Integer value1, Integer value2) {
            addCriterion("patientId not between", value1, value2, "patientId");
            return (Criteria) this;
        }

        public Criteria andPatientIdentityIsNull() {
            addCriterion("patientIdentity is null");
            return (Criteria) this;
        }

        public Criteria andPatientIdentityIsNotNull() {
            addCriterion("patientIdentity is not null");
            return (Criteria) this;
        }

        public Criteria andPatientIdentityEqualTo(String value) {
            addCriterion("patientIdentity =", value, "patientIdentity");
            return (Criteria) this;
        }

        public Criteria andPatientIdentityNotEqualTo(String value) {
            addCriterion("patientIdentity <>", value, "patientIdentity");
            return (Criteria) this;
        }

        public Criteria andPatientIdentityGreaterThan(String value) {
            addCriterion("patientIdentity >", value, "patientIdentity");
            return (Criteria) this;
        }

        public Criteria andPatientIdentityGreaterThanOrEqualTo(String value) {
            addCriterion("patientIdentity >=", value, "patientIdentity");
            return (Criteria) this;
        }

        public Criteria andPatientIdentityLessThan(String value) {
            addCriterion("patientIdentity <", value, "patientIdentity");
            return (Criteria) this;
        }

        public Criteria andPatientIdentityLessThanOrEqualTo(String value) {
            addCriterion("patientIdentity <=", value, "patientIdentity");
            return (Criteria) this;
        }

        public Criteria andPatientIdentityLike(String value) {
            addCriterion("patientIdentity like", value, "patientIdentity");
            return (Criteria) this;
        }

        public Criteria andPatientIdentityNotLike(String value) {
            addCriterion("patientIdentity not like", value, "patientIdentity");
            return (Criteria) this;
        }

        public Criteria andPatientIdentityIn(List<String> values) {
            addCriterion("patientIdentity in", values, "patientIdentity");
            return (Criteria) this;
        }

        public Criteria andPatientIdentityNotIn(List<String> values) {
            addCriterion("patientIdentity not in", values, "patientIdentity");
            return (Criteria) this;
        }

        public Criteria andPatientIdentityBetween(String value1, String value2) {
            addCriterion("patientIdentity between", value1, value2, "patientIdentity");
            return (Criteria) this;
        }

        public Criteria andPatientIdentityNotBetween(String value1, String value2) {
            addCriterion("patientIdentity not between", value1, value2, "patientIdentity");
            return (Criteria) this;
        }

        public Criteria andPatientNameIsNull() {
            addCriterion("patientName is null");
            return (Criteria) this;
        }

        public Criteria andPatientNameIsNotNull() {
            addCriterion("patientName is not null");
            return (Criteria) this;
        }

        public Criteria andPatientNameEqualTo(String value) {
            addCriterion("patientName =", value, "patientName");
            return (Criteria) this;
        }

        public Criteria andPatientNameNotEqualTo(String value) {
            addCriterion("patientName <>", value, "patientName");
            return (Criteria) this;
        }

        public Criteria andPatientNameGreaterThan(String value) {
            addCriterion("patientName >", value, "patientName");
            return (Criteria) this;
        }

        public Criteria andPatientNameGreaterThanOrEqualTo(String value) {
            addCriterion("patientName >=", value, "patientName");
            return (Criteria) this;
        }

        public Criteria andPatientNameLessThan(String value) {
            addCriterion("patientName <", value, "patientName");
            return (Criteria) this;
        }

        public Criteria andPatientNameLessThanOrEqualTo(String value) {
            addCriterion("patientName <=", value, "patientName");
            return (Criteria) this;
        }

        public Criteria andPatientNameLike(String value) {
            addCriterion("patientName like", value, "patientName");
            return (Criteria) this;
        }

        public Criteria andPatientNameNotLike(String value) {
            addCriterion("patientName not like", value, "patientName");
            return (Criteria) this;
        }

        public Criteria andPatientNameIn(List<String> values) {
            addCriterion("patientName in", values, "patientName");
            return (Criteria) this;
        }

        public Criteria andPatientNameNotIn(List<String> values) {
            addCriterion("patientName not in", values, "patientName");
            return (Criteria) this;
        }

        public Criteria andPatientNameBetween(String value1, String value2) {
            addCriterion("patientName between", value1, value2, "patientName");
            return (Criteria) this;
        }

        public Criteria andPatientNameNotBetween(String value1, String value2) {
            addCriterion("patientName not between", value1, value2, "patientName");
            return (Criteria) this;
        }

        public Criteria andPatientSocialNumberIsNull() {
            addCriterion("patientSocialNumber is null");
            return (Criteria) this;
        }

        public Criteria andPatientSocialNumberIsNotNull() {
            addCriterion("patientSocialNumber is not null");
            return (Criteria) this;
        }

        public Criteria andPatientSocialNumberEqualTo(String value) {
            addCriterion("patientSocialNumber =", value, "patientSocialNumber");
            return (Criteria) this;
        }

        public Criteria andPatientSocialNumberNotEqualTo(String value) {
            addCriterion("patientSocialNumber <>", value, "patientSocialNumber");
            return (Criteria) this;
        }

        public Criteria andPatientSocialNumberGreaterThan(String value) {
            addCriterion("patientSocialNumber >", value, "patientSocialNumber");
            return (Criteria) this;
        }

        public Criteria andPatientSocialNumberGreaterThanOrEqualTo(String value) {
            addCriterion("patientSocialNumber >=", value, "patientSocialNumber");
            return (Criteria) this;
        }

        public Criteria andPatientSocialNumberLessThan(String value) {
            addCriterion("patientSocialNumber <", value, "patientSocialNumber");
            return (Criteria) this;
        }

        public Criteria andPatientSocialNumberLessThanOrEqualTo(String value) {
            addCriterion("patientSocialNumber <=", value, "patientSocialNumber");
            return (Criteria) this;
        }

        public Criteria andPatientSocialNumberLike(String value) {
            addCriterion("patientSocialNumber like", value, "patientSocialNumber");
            return (Criteria) this;
        }

        public Criteria andPatientSocialNumberNotLike(String value) {
            addCriterion("patientSocialNumber not like", value, "patientSocialNumber");
            return (Criteria) this;
        }

        public Criteria andPatientSocialNumberIn(List<String> values) {
            addCriterion("patientSocialNumber in", values, "patientSocialNumber");
            return (Criteria) this;
        }

        public Criteria andPatientSocialNumberNotIn(List<String> values) {
            addCriterion("patientSocialNumber not in", values, "patientSocialNumber");
            return (Criteria) this;
        }

        public Criteria andPatientSocialNumberBetween(String value1, String value2) {
            addCriterion("patientSocialNumber between", value1, value2, "patientSocialNumber");
            return (Criteria) this;
        }

        public Criteria andPatientSocialNumberNotBetween(String value1, String value2) {
            addCriterion("patientSocialNumber not between", value1, value2, "patientSocialNumber");
            return (Criteria) this;
        }

        public Criteria andPatientRegisterFeeIsNull() {
            addCriterion("patientRegisterFee is null");
            return (Criteria) this;
        }

        public Criteria andPatientRegisterFeeIsNotNull() {
            addCriterion("patientRegisterFee is not null");
            return (Criteria) this;
        }

        public Criteria andPatientRegisterFeeEqualTo(Double value) {
            addCriterion("patientRegisterFee =", value, "patientRegisterFee");
            return (Criteria) this;
        }

        public Criteria andPatientRegisterFeeNotEqualTo(Double value) {
            addCriterion("patientRegisterFee <>", value, "patientRegisterFee");
            return (Criteria) this;
        }

        public Criteria andPatientRegisterFeeGreaterThan(Double value) {
            addCriterion("patientRegisterFee >", value, "patientRegisterFee");
            return (Criteria) this;
        }

        public Criteria andPatientRegisterFeeGreaterThanOrEqualTo(Double value) {
            addCriterion("patientRegisterFee >=", value, "patientRegisterFee");
            return (Criteria) this;
        }

        public Criteria andPatientRegisterFeeLessThan(Double value) {
            addCriterion("patientRegisterFee <", value, "patientRegisterFee");
            return (Criteria) this;
        }

        public Criteria andPatientRegisterFeeLessThanOrEqualTo(Double value) {
            addCriterion("patientRegisterFee <=", value, "patientRegisterFee");
            return (Criteria) this;
        }

        public Criteria andPatientRegisterFeeIn(List<Double> values) {
            addCriterion("patientRegisterFee in", values, "patientRegisterFee");
            return (Criteria) this;
        }

        public Criteria andPatientRegisterFeeNotIn(List<Double> values) {
            addCriterion("patientRegisterFee not in", values, "patientRegisterFee");
            return (Criteria) this;
        }

        public Criteria andPatientRegisterFeeBetween(Double value1, Double value2) {
            addCriterion("patientRegisterFee between", value1, value2, "patientRegisterFee");
            return (Criteria) this;
        }

        public Criteria andPatientRegisterFeeNotBetween(Double value1, Double value2) {
            addCriterion("patientRegisterFee not between", value1, value2, "patientRegisterFee");
            return (Criteria) this;
        }

        public Criteria andPatientPhoneIsNull() {
            addCriterion("patientPhone is null");
            return (Criteria) this;
        }

        public Criteria andPatientPhoneIsNotNull() {
            addCriterion("patientPhone is not null");
            return (Criteria) this;
        }

        public Criteria andPatientPhoneEqualTo(String value) {
            addCriterion("patientPhone =", value, "patientPhone");
            return (Criteria) this;
        }

        public Criteria andPatientPhoneNotEqualTo(String value) {
            addCriterion("patientPhone <>", value, "patientPhone");
            return (Criteria) this;
        }

        public Criteria andPatientPhoneGreaterThan(String value) {
            addCriterion("patientPhone >", value, "patientPhone");
            return (Criteria) this;
        }

        public Criteria andPatientPhoneGreaterThanOrEqualTo(String value) {
            addCriterion("patientPhone >=", value, "patientPhone");
            return (Criteria) this;
        }

        public Criteria andPatientPhoneLessThan(String value) {
            addCriterion("patientPhone <", value, "patientPhone");
            return (Criteria) this;
        }

        public Criteria andPatientPhoneLessThanOrEqualTo(String value) {
            addCriterion("patientPhone <=", value, "patientPhone");
            return (Criteria) this;
        }

        public Criteria andPatientPhoneLike(String value) {
            addCriterion("patientPhone like", value, "patientPhone");
            return (Criteria) this;
        }

        public Criteria andPatientPhoneNotLike(String value) {
            addCriterion("patientPhone not like", value, "patientPhone");
            return (Criteria) this;
        }

        public Criteria andPatientPhoneIn(List<String> values) {
            addCriterion("patientPhone in", values, "patientPhone");
            return (Criteria) this;
        }

        public Criteria andPatientPhoneNotIn(List<String> values) {
            addCriterion("patientPhone not in", values, "patientPhone");
            return (Criteria) this;
        }

        public Criteria andPatientPhoneBetween(String value1, String value2) {
            addCriterion("patientPhone between", value1, value2, "patientPhone");
            return (Criteria) this;
        }

        public Criteria andPatientPhoneNotBetween(String value1, String value2) {
            addCriterion("patientPhone not between", value1, value2, "patientPhone");
            return (Criteria) this;
        }

        public Criteria andPatientSelfPayIsNull() {
            addCriterion("patientSelfPay is null");
            return (Criteria) this;
        }

        public Criteria andPatientSelfPayIsNotNull() {
            addCriterion("patientSelfPay is not null");
            return (Criteria) this;
        }

        public Criteria andPatientSelfPayEqualTo(Integer value) {
            addCriterion("patientSelfPay =", value, "patientSelfPay");
            return (Criteria) this;
        }

        public Criteria andPatientSelfPayNotEqualTo(Integer value) {
            addCriterion("patientSelfPay <>", value, "patientSelfPay");
            return (Criteria) this;
        }

        public Criteria andPatientSelfPayGreaterThan(Integer value) {
            addCriterion("patientSelfPay >", value, "patientSelfPay");
            return (Criteria) this;
        }

        public Criteria andPatientSelfPayGreaterThanOrEqualTo(Integer value) {
            addCriterion("patientSelfPay >=", value, "patientSelfPay");
            return (Criteria) this;
        }

        public Criteria andPatientSelfPayLessThan(Integer value) {
            addCriterion("patientSelfPay <", value, "patientSelfPay");
            return (Criteria) this;
        }

        public Criteria andPatientSelfPayLessThanOrEqualTo(Integer value) {
            addCriterion("patientSelfPay <=", value, "patientSelfPay");
            return (Criteria) this;
        }

        public Criteria andPatientSelfPayIn(List<Integer> values) {
            addCriterion("patientSelfPay in", values, "patientSelfPay");
            return (Criteria) this;
        }

        public Criteria andPatientSelfPayNotIn(List<Integer> values) {
            addCriterion("patientSelfPay not in", values, "patientSelfPay");
            return (Criteria) this;
        }

        public Criteria andPatientSelfPayBetween(Integer value1, Integer value2) {
            addCriterion("patientSelfPay between", value1, value2, "patientSelfPay");
            return (Criteria) this;
        }

        public Criteria andPatientSelfPayNotBetween(Integer value1, Integer value2) {
            addCriterion("patientSelfPay not between", value1, value2, "patientSelfPay");
            return (Criteria) this;
        }

        public Criteria andPatientSexIsNull() {
            addCriterion("patientSex is null");
            return (Criteria) this;
        }

        public Criteria andPatientSexIsNotNull() {
            addCriterion("patientSex is not null");
            return (Criteria) this;
        }

        public Criteria andPatientSexEqualTo(Integer value) {
            addCriterion("patientSex =", value, "patientSex");
            return (Criteria) this;
        }

        public Criteria andPatientSexNotEqualTo(Integer value) {
            addCriterion("patientSex <>", value, "patientSex");
            return (Criteria) this;
        }

        public Criteria andPatientSexGreaterThan(Integer value) {
            addCriterion("patientSex >", value, "patientSex");
            return (Criteria) this;
        }

        public Criteria andPatientSexGreaterThanOrEqualTo(Integer value) {
            addCriterion("patientSex >=", value, "patientSex");
            return (Criteria) this;
        }

        public Criteria andPatientSexLessThan(Integer value) {
            addCriterion("patientSex <", value, "patientSex");
            return (Criteria) this;
        }

        public Criteria andPatientSexLessThanOrEqualTo(Integer value) {
            addCriterion("patientSex <=", value, "patientSex");
            return (Criteria) this;
        }

        public Criteria andPatientSexIn(List<Integer> values) {
            addCriterion("patientSex in", values, "patientSex");
            return (Criteria) this;
        }

        public Criteria andPatientSexNotIn(List<Integer> values) {
            addCriterion("patientSex not in", values, "patientSex");
            return (Criteria) this;
        }

        public Criteria andPatientSexBetween(Integer value1, Integer value2) {
            addCriterion("patientSex between", value1, value2, "patientSex");
            return (Criteria) this;
        }

        public Criteria andPatientSexNotBetween(Integer value1, Integer value2) {
            addCriterion("patientSex not between", value1, value2, "patientSex");
            return (Criteria) this;
        }

        public Criteria andPatientAgeIsNull() {
            addCriterion("patientAge is null");
            return (Criteria) this;
        }

        public Criteria andPatientAgeIsNotNull() {
            addCriterion("patientAge is not null");
            return (Criteria) this;
        }

        public Criteria andPatientAgeEqualTo(Integer value) {
            addCriterion("patientAge =", value, "patientAge");
            return (Criteria) this;
        }

        public Criteria andPatientAgeNotEqualTo(Integer value) {
            addCriterion("patientAge <>", value, "patientAge");
            return (Criteria) this;
        }

        public Criteria andPatientAgeGreaterThan(Integer value) {
            addCriterion("patientAge >", value, "patientAge");
            return (Criteria) this;
        }

        public Criteria andPatientAgeGreaterThanOrEqualTo(Integer value) {
            addCriterion("patientAge >=", value, "patientAge");
            return (Criteria) this;
        }

        public Criteria andPatientAgeLessThan(Integer value) {
            addCriterion("patientAge <", value, "patientAge");
            return (Criteria) this;
        }

        public Criteria andPatientAgeLessThanOrEqualTo(Integer value) {
            addCriterion("patientAge <=", value, "patientAge");
            return (Criteria) this;
        }

        public Criteria andPatientAgeIn(List<Integer> values) {
            addCriterion("patientAge in", values, "patientAge");
            return (Criteria) this;
        }

        public Criteria andPatientAgeNotIn(List<Integer> values) {
            addCriterion("patientAge not in", values, "patientAge");
            return (Criteria) this;
        }

        public Criteria andPatientAgeBetween(Integer value1, Integer value2) {
            addCriterion("patientAge between", value1, value2, "patientAge");
            return (Criteria) this;
        }

        public Criteria andPatientAgeNotBetween(Integer value1, Integer value2) {
            addCriterion("patientAge not between", value1, value2, "patientAge");
            return (Criteria) this;
        }

        public Criteria andPatientCareerIsNull() {
            addCriterion("patientCareer is null");
            return (Criteria) this;
        }

        public Criteria andPatientCareerIsNotNull() {
            addCriterion("patientCareer is not null");
            return (Criteria) this;
        }

        public Criteria andPatientCareerEqualTo(String value) {
            addCriterion("patientCareer =", value, "patientCareer");
            return (Criteria) this;
        }

        public Criteria andPatientCareerNotEqualTo(String value) {
            addCriterion("patientCareer <>", value, "patientCareer");
            return (Criteria) this;
        }

        public Criteria andPatientCareerGreaterThan(String value) {
            addCriterion("patientCareer >", value, "patientCareer");
            return (Criteria) this;
        }

        public Criteria andPatientCareerGreaterThanOrEqualTo(String value) {
            addCriterion("patientCareer >=", value, "patientCareer");
            return (Criteria) this;
        }

        public Criteria andPatientCareerLessThan(String value) {
            addCriterion("patientCareer <", value, "patientCareer");
            return (Criteria) this;
        }

        public Criteria andPatientCareerLessThanOrEqualTo(String value) {
            addCriterion("patientCareer <=", value, "patientCareer");
            return (Criteria) this;
        }

        public Criteria andPatientCareerLike(String value) {
            addCriterion("patientCareer like", value, "patientCareer");
            return (Criteria) this;
        }

        public Criteria andPatientCareerNotLike(String value) {
            addCriterion("patientCareer not like", value, "patientCareer");
            return (Criteria) this;
        }

        public Criteria andPatientCareerIn(List<String> values) {
            addCriterion("patientCareer in", values, "patientCareer");
            return (Criteria) this;
        }

        public Criteria andPatientCareerNotIn(List<String> values) {
            addCriterion("patientCareer not in", values, "patientCareer");
            return (Criteria) this;
        }

        public Criteria andPatientCareerBetween(String value1, String value2) {
            addCriterion("patientCareer between", value1, value2, "patientCareer");
            return (Criteria) this;
        }

        public Criteria andPatientCareerNotBetween(String value1, String value2) {
            addCriterion("patientCareer not between", value1, value2, "patientCareer");
            return (Criteria) this;
        }

        public Criteria andPatientIsReturnVisitIsNull() {
            addCriterion("patientIsReturnVisit is null");
            return (Criteria) this;
        }

        public Criteria andPatientIsReturnVisitIsNotNull() {
            addCriterion("patientIsReturnVisit is not null");
            return (Criteria) this;
        }

        public Criteria andPatientIsReturnVisitEqualTo(Integer value) {
            addCriterion("patientIsReturnVisit =", value, "patientIsReturnVisit");
            return (Criteria) this;
        }

        public Criteria andPatientIsReturnVisitNotEqualTo(Integer value) {
            addCriterion("patientIsReturnVisit <>", value, "patientIsReturnVisit");
            return (Criteria) this;
        }

        public Criteria andPatientIsReturnVisitGreaterThan(Integer value) {
            addCriterion("patientIsReturnVisit >", value, "patientIsReturnVisit");
            return (Criteria) this;
        }

        public Criteria andPatientIsReturnVisitGreaterThanOrEqualTo(Integer value) {
            addCriterion("patientIsReturnVisit >=", value, "patientIsReturnVisit");
            return (Criteria) this;
        }

        public Criteria andPatientIsReturnVisitLessThan(Integer value) {
            addCriterion("patientIsReturnVisit <", value, "patientIsReturnVisit");
            return (Criteria) this;
        }

        public Criteria andPatientIsReturnVisitLessThanOrEqualTo(Integer value) {
            addCriterion("patientIsReturnVisit <=", value, "patientIsReturnVisit");
            return (Criteria) this;
        }

        public Criteria andPatientIsReturnVisitIn(List<Integer> values) {
            addCriterion("patientIsReturnVisit in", values, "patientIsReturnVisit");
            return (Criteria) this;
        }

        public Criteria andPatientIsReturnVisitNotIn(List<Integer> values) {
            addCriterion("patientIsReturnVisit not in", values, "patientIsReturnVisit");
            return (Criteria) this;
        }

        public Criteria andPatientIsReturnVisitBetween(Integer value1, Integer value2) {
            addCriterion("patientIsReturnVisit between", value1, value2, "patientIsReturnVisit");
            return (Criteria) this;
        }

        public Criteria andPatientIsReturnVisitNotBetween(Integer value1, Integer value2) {
            addCriterion("patientIsReturnVisit not between", value1, value2, "patientIsReturnVisit");
            return (Criteria) this;
        }

        public Criteria andDoctorDepartmentIsNull() {
            addCriterion("doctorDepartment is null");
            return (Criteria) this;
        }

        public Criteria andDoctorDepartmentIsNotNull() {
            addCriterion("doctorDepartment is not null");
            return (Criteria) this;
        }

        public Criteria andDoctorDepartmentEqualTo(String value) {
            addCriterion("doctorDepartment =", value, "doctorDepartment");
            return (Criteria) this;
        }

        public Criteria andDoctorDepartmentNotEqualTo(String value) {
            addCriterion("doctorDepartment <>", value, "doctorDepartment");
            return (Criteria) this;
        }

        public Criteria andDoctorDepartmentGreaterThan(String value) {
            addCriterion("doctorDepartment >", value, "doctorDepartment");
            return (Criteria) this;
        }

        public Criteria andDoctorDepartmentGreaterThanOrEqualTo(String value) {
            addCriterion("doctorDepartment >=", value, "doctorDepartment");
            return (Criteria) this;
        }

        public Criteria andDoctorDepartmentLessThan(String value) {
            addCriterion("doctorDepartment <", value, "doctorDepartment");
            return (Criteria) this;
        }

        public Criteria andDoctorDepartmentLessThanOrEqualTo(String value) {
            addCriterion("doctorDepartment <=", value, "doctorDepartment");
            return (Criteria) this;
        }

        public Criteria andDoctorDepartmentLike(String value) {
            addCriterion("doctorDepartment like", value, "doctorDepartment");
            return (Criteria) this;
        }

        public Criteria andDoctorDepartmentNotLike(String value) {
            addCriterion("doctorDepartment not like", value, "doctorDepartment");
            return (Criteria) this;
        }

        public Criteria andDoctorDepartmentIn(List<String> values) {
            addCriterion("doctorDepartment in", values, "doctorDepartment");
            return (Criteria) this;
        }

        public Criteria andDoctorDepartmentNotIn(List<String> values) {
            addCriterion("doctorDepartment not in", values, "doctorDepartment");
            return (Criteria) this;
        }

        public Criteria andDoctorDepartmentBetween(String value1, String value2) {
            addCriterion("doctorDepartment between", value1, value2, "doctorDepartment");
            return (Criteria) this;
        }

        public Criteria andDoctorDepartmentNotBetween(String value1, String value2) {
            addCriterion("doctorDepartment not between", value1, value2, "doctorDepartment");
            return (Criteria) this;
        }

        public Criteria andDoctorIdIsNull() {
            addCriterion("doctorId is null");
            return (Criteria) this;
        }

        public Criteria andDoctorIdIsNotNull() {
            addCriterion("doctorId is not null");
            return (Criteria) this;
        }

        public Criteria andDoctorIdEqualTo(Integer value) {
            addCriterion("doctorId =", value, "doctorId");
            return (Criteria) this;
        }

        public Criteria andDoctorIdNotEqualTo(Integer value) {
            addCriterion("doctorId <>", value, "doctorId");
            return (Criteria) this;
        }

        public Criteria andDoctorIdGreaterThan(Integer value) {
            addCriterion("doctorId >", value, "doctorId");
            return (Criteria) this;
        }

        public Criteria andDoctorIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("doctorId >=", value, "doctorId");
            return (Criteria) this;
        }

        public Criteria andDoctorIdLessThan(Integer value) {
            addCriterion("doctorId <", value, "doctorId");
            return (Criteria) this;
        }

        public Criteria andDoctorIdLessThanOrEqualTo(Integer value) {
            addCriterion("doctorId <=", value, "doctorId");
            return (Criteria) this;
        }

        public Criteria andDoctorIdIn(List<Integer> values) {
            addCriterion("doctorId in", values, "doctorId");
            return (Criteria) this;
        }

        public Criteria andDoctorIdNotIn(List<Integer> values) {
            addCriterion("doctorId not in", values, "doctorId");
            return (Criteria) this;
        }

        public Criteria andDoctorIdBetween(Integer value1, Integer value2) {
            addCriterion("doctorId between", value1, value2, "doctorId");
            return (Criteria) this;
        }

        public Criteria andDoctorIdNotBetween(Integer value1, Integer value2) {
            addCriterion("doctorId not between", value1, value2, "doctorId");
            return (Criteria) this;
        }

        public Criteria andPatientRemarkIsNull() {
            addCriterion("patientRemark is null");
            return (Criteria) this;
        }

        public Criteria andPatientRemarkIsNotNull() {
            addCriterion("patientRemark is not null");
            return (Criteria) this;
        }

        public Criteria andPatientRemarkEqualTo(String value) {
            addCriterion("patientRemark =", value, "patientRemark");
            return (Criteria) this;
        }

        public Criteria andPatientRemarkNotEqualTo(String value) {
            addCriterion("patientRemark <>", value, "patientRemark");
            return (Criteria) this;
        }

        public Criteria andPatientRemarkGreaterThan(String value) {
            addCriterion("patientRemark >", value, "patientRemark");
            return (Criteria) this;
        }

        public Criteria andPatientRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("patientRemark >=", value, "patientRemark");
            return (Criteria) this;
        }

        public Criteria andPatientRemarkLessThan(String value) {
            addCriterion("patientRemark <", value, "patientRemark");
            return (Criteria) this;
        }

        public Criteria andPatientRemarkLessThanOrEqualTo(String value) {
            addCriterion("patientRemark <=", value, "patientRemark");
            return (Criteria) this;
        }

        public Criteria andPatientRemarkLike(String value) {
            addCriterion("patientRemark like", value, "patientRemark");
            return (Criteria) this;
        }

        public Criteria andPatientRemarkNotLike(String value) {
            addCriterion("patientRemark not like", value, "patientRemark");
            return (Criteria) this;
        }

        public Criteria andPatientRemarkIn(List<String> values) {
            addCriterion("patientRemark in", values, "patientRemark");
            return (Criteria) this;
        }

        public Criteria andPatientRemarkNotIn(List<String> values) {
            addCriterion("patientRemark not in", values, "patientRemark");
            return (Criteria) this;
        }

        public Criteria andPatientRemarkBetween(String value1, String value2) {
            addCriterion("patientRemark between", value1, value2, "patientRemark");
            return (Criteria) this;
        }

        public Criteria andPatientRemarkNotBetween(String value1, String value2) {
            addCriterion("patientRemark not between", value1, value2, "patientRemark");
            return (Criteria) this;
        }

        public Criteria andPatientStateIsNull() {
            addCriterion("patientState is null");
            return (Criteria) this;
        }

        public Criteria andPatientStateIsNotNull() {
            addCriterion("patientState is not null");
            return (Criteria) this;
        }

        public Criteria andPatientStateEqualTo(Integer value) {
            addCriterion("patientState =", value, "patientState");
            return (Criteria) this;
        }

        public Criteria andPatientStateNotEqualTo(Integer value) {
            addCriterion("patientState <>", value, "patientState");
            return (Criteria) this;
        }

        public Criteria andPatientStateGreaterThan(Integer value) {
            addCriterion("patientState >", value, "patientState");
            return (Criteria) this;
        }

        public Criteria andPatientStateGreaterThanOrEqualTo(Integer value) {
            addCriterion("patientState >=", value, "patientState");
            return (Criteria) this;
        }

        public Criteria andPatientStateLessThan(Integer value) {
            addCriterion("patientState <", value, "patientState");
            return (Criteria) this;
        }

        public Criteria andPatientStateLessThanOrEqualTo(Integer value) {
            addCriterion("patientState <=", value, "patientState");
            return (Criteria) this;
        }

        public Criteria andPatientStateIn(List<Integer> values) {
            addCriterion("patientState in", values, "patientState");
            return (Criteria) this;
        }

        public Criteria andPatientStateNotIn(List<Integer> values) {
            addCriterion("patientState not in", values, "patientState");
            return (Criteria) this;
        }

        public Criteria andPatientStateBetween(Integer value1, Integer value2) {
            addCriterion("patientState between", value1, value2, "patientState");
            return (Criteria) this;
        }

        public Criteria andPatientStateNotBetween(Integer value1, Integer value2) {
            addCriterion("patientState not between", value1, value2, "patientState");
            return (Criteria) this;
        }

        public Criteria andNurseIsNull() {
            addCriterion("nurse is null");
            return (Criteria) this;
        }

        public Criteria andNurseIsNotNull() {
            addCriterion("nurse is not null");
            return (Criteria) this;
        }

        public Criteria andNurseEqualTo(String value) {
            addCriterion("nurse =", value, "nurse");
            return (Criteria) this;
        }

        public Criteria andNurseNotEqualTo(String value) {
            addCriterion("nurse <>", value, "nurse");
            return (Criteria) this;
        }

        public Criteria andNurseGreaterThan(String value) {
            addCriterion("nurse >", value, "nurse");
            return (Criteria) this;
        }

        public Criteria andNurseGreaterThanOrEqualTo(String value) {
            addCriterion("nurse >=", value, "nurse");
            return (Criteria) this;
        }

        public Criteria andNurseLessThan(String value) {
            addCriterion("nurse <", value, "nurse");
            return (Criteria) this;
        }

        public Criteria andNurseLessThanOrEqualTo(String value) {
            addCriterion("nurse <=", value, "nurse");
            return (Criteria) this;
        }

        public Criteria andNurseLike(String value) {
            addCriterion("nurse like", value, "nurse");
            return (Criteria) this;
        }

        public Criteria andNurseNotLike(String value) {
            addCriterion("nurse not like", value, "nurse");
            return (Criteria) this;
        }

        public Criteria andNurseIn(List<String> values) {
            addCriterion("nurse in", values, "nurse");
            return (Criteria) this;
        }

        public Criteria andNurseNotIn(List<String> values) {
            addCriterion("nurse not in", values, "nurse");
            return (Criteria) this;
        }

        public Criteria andNurseBetween(String value1, String value2) {
            addCriterion("nurse between", value1, value2, "nurse");
            return (Criteria) this;
        }

        public Criteria andNurseNotBetween(String value1, String value2) {
            addCriterion("nurse not between", value1, value2, "nurse");
            return (Criteria) this;
        }

        public Criteria andBedNoIsNull() {
            addCriterion("bedNo is null");
            return (Criteria) this;
        }

        public Criteria andBedNoIsNotNull() {
            addCriterion("bedNo is not null");
            return (Criteria) this;
        }

        public Criteria andBedNoEqualTo(String value) {
            addCriterion("bedNo =", value, "bedNo");
            return (Criteria) this;
        }

        public Criteria andBedNoNotEqualTo(String value) {
            addCriterion("bedNo <>", value, "bedNo");
            return (Criteria) this;
        }

        public Criteria andBedNoGreaterThan(String value) {
            addCriterion("bedNo >", value, "bedNo");
            return (Criteria) this;
        }

        public Criteria andBedNoGreaterThanOrEqualTo(String value) {
            addCriterion("bedNo >=", value, "bedNo");
            return (Criteria) this;
        }

        public Criteria andBedNoLessThan(String value) {
            addCriterion("bedNo <", value, "bedNo");
            return (Criteria) this;
        }

        public Criteria andBedNoLessThanOrEqualTo(String value) {
            addCriterion("bedNo <=", value, "bedNo");
            return (Criteria) this;
        }

        public Criteria andBedNoLike(String value) {
            addCriterion("bedNo like", value, "bedNo");
            return (Criteria) this;
        }

        public Criteria andBedNoNotLike(String value) {
            addCriterion("bedNo not like", value, "bedNo");
            return (Criteria) this;
        }

        public Criteria andBedNoIn(List<String> values) {
            addCriterion("bedNo in", values, "bedNo");
            return (Criteria) this;
        }

        public Criteria andBedNoNotIn(List<String> values) {
            addCriterion("bedNo not in", values, "bedNo");
            return (Criteria) this;
        }

        public Criteria andBedNoBetween(String value1, String value2) {
            addCriterion("bedNo between", value1, value2, "bedNo");
            return (Criteria) this;
        }

        public Criteria andBedNoNotBetween(String value1, String value2) {
            addCriterion("bedNo not between", value1, value2, "bedNo");
            return (Criteria) this;
        }

        public Criteria andDepositIsNull() {
            addCriterion("deposit is null");
            return (Criteria) this;
        }

        public Criteria andDepositIsNotNull() {
            addCriterion("deposit is not null");
            return (Criteria) this;
        }

        public Criteria andDepositEqualTo(Double value) {
            addCriterion("deposit =", value, "deposit");
            return (Criteria) this;
        }

        public Criteria andDepositNotEqualTo(Double value) {
            addCriterion("deposit <>", value, "deposit");
            return (Criteria) this;
        }

        public Criteria andDepositGreaterThan(Double value) {
            addCriterion("deposit >", value, "deposit");
            return (Criteria) this;
        }

        public Criteria andDepositGreaterThanOrEqualTo(Double value) {
            addCriterion("deposit >=", value, "deposit");
            return (Criteria) this;
        }

        public Criteria andDepositLessThan(Double value) {
            addCriterion("deposit <", value, "deposit");
            return (Criteria) this;
        }

        public Criteria andDepositLessThanOrEqualTo(Double value) {
            addCriterion("deposit <=", value, "deposit");
            return (Criteria) this;
        }

        public Criteria andDepositIn(List<Double> values) {
            addCriterion("deposit in", values, "deposit");
            return (Criteria) this;
        }

        public Criteria andDepositNotIn(List<Double> values) {
            addCriterion("deposit not in", values, "deposit");
            return (Criteria) this;
        }

        public Criteria andDepositBetween(Double value1, Double value2) {
            addCriterion("deposit between", value1, value2, "deposit");
            return (Criteria) this;
        }

        public Criteria andDepositNotBetween(Double value1, Double value2) {
            addCriterion("deposit not between", value1, value2, "deposit");
            return (Criteria) this;
        }

        public Criteria andIllneseDescIsNull() {
            addCriterion("illneseDesc is null");
            return (Criteria) this;
        }

        public Criteria andIllneseDescIsNotNull() {
            addCriterion("illneseDesc is not null");
            return (Criteria) this;
        }

        public Criteria andIllneseDescEqualTo(String value) {
            addCriterion("illneseDesc =", value, "illneseDesc");
            return (Criteria) this;
        }

        public Criteria andIllneseDescNotEqualTo(String value) {
            addCriterion("illneseDesc <>", value, "illneseDesc");
            return (Criteria) this;
        }

        public Criteria andIllneseDescGreaterThan(String value) {
            addCriterion("illneseDesc >", value, "illneseDesc");
            return (Criteria) this;
        }

        public Criteria andIllneseDescGreaterThanOrEqualTo(String value) {
            addCriterion("illneseDesc >=", value, "illneseDesc");
            return (Criteria) this;
        }

        public Criteria andIllneseDescLessThan(String value) {
            addCriterion("illneseDesc <", value, "illneseDesc");
            return (Criteria) this;
        }

        public Criteria andIllneseDescLessThanOrEqualTo(String value) {
            addCriterion("illneseDesc <=", value, "illneseDesc");
            return (Criteria) this;
        }

        public Criteria andIllneseDescLike(String value) {
            addCriterion("illneseDesc like", value, "illneseDesc");
            return (Criteria) this;
        }

        public Criteria andIllneseDescNotLike(String value) {
            addCriterion("illneseDesc not like", value, "illneseDesc");
            return (Criteria) this;
        }

        public Criteria andIllneseDescIn(List<String> values) {
            addCriterion("illneseDesc in", values, "illneseDesc");
            return (Criteria) this;
        }

        public Criteria andIllneseDescNotIn(List<String> values) {
            addCriterion("illneseDesc not in", values, "illneseDesc");
            return (Criteria) this;
        }

        public Criteria andIllneseDescBetween(String value1, String value2) {
            addCriterion("illneseDesc between", value1, value2, "illneseDesc");
            return (Criteria) this;
        }

        public Criteria andIllneseDescNotBetween(String value1, String value2) {
            addCriterion("illneseDesc not between", value1, value2, "illneseDesc");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}